﻿#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//Sn = a + aa + aaa + aaaa + aaaaa
int main()
{
	char a = 2;
	int t = a - '0';
	int Sn = t * 5 + t * 40 * t * 300 + t * 2000 + t * 10000;
	printf("%d", Sn);
	return 0;
}